home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib1 / v_01_05 / 1n05046a < prev    next >
Encoding:
Text File  |  1995-11-01  |  374 b   |  25 lines

  1.  
  2. int  x;        /* file scope, external linkage */
  3. static int y;     /* file scope
  4.  
  5. int f1();         /* file scope, external linkage */
  6. static void f2(); /* file scope */
  7.  
  8. int f1() 
  9.     {
  10.     int i, res = 0;    /* local scope */
  11.      
  12.     for (i = 1; i <= 10; ++i)
  13.         res += i;
  14.  
  15.     return res;
  16.     }
  17.  
  18. static void f2() 
  19.     {
  20.     goto comehere;
  21.  
  22.     comehere:        /* function scope */
  23.     }
  24.  
  25.